package light.mvc.model.record;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import light.mvc.model.base.IdEntity;
import light.mvc.model.sys.Trole;

import org.hibernate.validator.constraints.NotBlank;

@SuppressWarnings("serial")
@Entity
@Table(name = "record_room")
public class Troom extends IdEntity implements Serializable {
	private String name;
	private Integer seq;
	private Integer isdefault;
	private String description;
	private Set<TroomSchedule> troomSchedules = new HashSet<TroomSchedule>(0);
	@OneToMany(fetch = FetchType.LAZY ,mappedBy = "room")
	public Set<TroomSchedule> getTroomSchedules() {
		return troomSchedules;
	}

	public void setTroomSchedules(Set<TroomSchedule> troomSchedules) {
		this.troomSchedules = troomSchedules;
	}

	@NotBlank
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSeq() {
		return this.seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public Integer getIsdefault() {
		return this.isdefault;
	}

	public void setIsdefault(Integer isdefault) {
		this.isdefault = isdefault;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}
